<style type="text/css">
    #menu
    {
        height:30px;
        background-color:pink;
    }

    #menu ul
    {
        margin:0;
        padding:0;
        list-style:none;
    }
    #menu li
    {
        display:inline;
    }
    #menu li a
    {
        text-decoration:none;
        font-size:24px;
        margin-left:30px;
        text-align:center;
        color:#333;
        font-weight:bold;
    }
    #menu li a:hover
    {
        color:white;
    }

</style>

<!DOCTYPE HTML>
<html lang="en">
   <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link type="text/css" rel="stylesheet" href="style1.css"/>


        <title>Sistem Dokumentasi</title>



    </head>
    <body>


        <form name="formcari" method="post" action="prosesSearch.php">
            <table width="330" border="0" align="right" cellpadding="0">

                <tr> <td>  Search </td>
                    <td> <input type="text" name="name"> </td>


                    <td> <input type="SUBMIT" name="SUBMIT" id="SUBMIT" value="search" > </td>
                </tr>
            </table></form>
        <div id="menu">
            <ul>
                <li><a href="FormUtama.php">Home</a></li>
                <li><a href="FormDownload.php">Download</a></li>

            </ul>
        </div>
        <!-- Akhir dari div menu -->

 <center>
        <div id="kotakKategori" >
<?php



// koneksi ke mysql
                mysql_connect('localhost', 'root', '');
                mysql_select_db('moduldok');

echo "<center>";
                echo "<h2>Daftar File Anda</h2>";

// query untuk mencari file yang telah diupload milik si user yang sedang login
                $query = "SELECT * FROM upload ";

                $hasil = mysql_query($query);

// menampilkan nama-nama file yang telah diupload si user yang sedang login

                while ($data = mysql_fetch_array($hasil)) {
                    echo "<center>";
                    echo "<li><a href='download.php?id=" . $data['id'] . "'>" . $data['name'] . "</a> ";
                }

                ?>
        </div>
    </center>
    <div id="footer">
        Sistem Dokumentasi ini dubuat untuk menyelesaikan tugas Proyek Informatika <br/>
        Thomas Haryo-Helanus Octa <br/>
    </div>
    </body>
</html>
